@import "./tools.less";

body {
  background-color: #f5f5f5;
  min-width: 1000px;

  background: url("../image/bg2.jpg") no-repeat center center;
  background-size: cover;
  width: 100%;
  height: 100%;
  /* 只需要给背景图加上该属性即可 */
  background-attachment: fixed;

  .header {
    background-color: @tmColor;
    height: 70px;
    line-height: 70px;
    padding: 0 60px;
    .logo {
      float: left;
      a {
        color: white;
        font-size: 34px;
        font-family: "华文行楷";
      }
    }
    .banner {
      float: left;
      margin-left: 10px;
      a {
        color: white;
        display: inline-block;
        width: 60px;
        height: 70px;
        line-height: 70px;
        text-align: center;
        &:hover {
          color: lighten(@tmColor, 30%) !important;
          background-color: darken(@tmColor, 5%) !important;
        }
      }
    }
    .put {
      float: left;
      margin-left: 10px;
      position: relative;
      input {
        width: 270px;
        height: 35px;
        border-radius: 5px;
        border: 1px solid @hvColor;
        padding-left: 10px;
        box-sizing: border-box;
        &:focus {
          outline: none;
        }
      }
      button {
        width: 70px;
        height: 34px;
        color: white;
        font-size: 16px;
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-42%);
        border: 1px solid @hvColor;
        border-radius: 0 5px 5px 0;
        background-color: @hvColor;
        transition: 0.3s;
        &:hover {
          background-color: @tmColor;
          cursor: pointer;
        }
      }
    }
    ul {
      float: right;
      li {
        float: left;
        margin-left: 20px;
        color: white;
        a {
          color: white;
          font-size: 16px;
          &:hover {
            cursor: pointer;
            color: @hvColor;
          }
        }
        &:first-child {
          margin-left: 0;
        }
      }
    }
  }
  .content {
    width: 1000px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    box-sizing: border-box;
    .auto {
      color: #666;
      font-size: 18px;
      padding-bottom: 10px;
      border-bottom: 1px solid #f2f2f2;
    }
  }
  .footer {
    margin-top: 10px;
    background-color: @tmColor;
    text-align: center;
    color: white;
    .footer-title {
      padding: 10px 0 10px;
      font-size: 18px;
    }
    .footer-content {
      padding-bottom: 10px;
      font-size: 12px;
    }
  }
  & {
    a {
      color: #333;
    }
  }
}

.active {
  color: lighten(@tmColor, 30%) !important;
  background-color: darken(@tmColor, 5%) !important;
}
